<template>
  <el-main>
    <el-main class="ep-body">
      <epl-top-bar
        :datas="{formData:form,panel:panel}"
        showPerson
        personType="PERSON_ALL_EXACT"
        psTagType="PERSON_INJURY_QUERY"
      >
        <ep-saveButton
          id="doSave"
          type="primary"
          ref="save"
          @formValidate="formValidate"
          :validate="['form']"
          :datas="{formData: form,panel:panel,tableData:tableData}"
          name="保存"
        ></ep-saveButton>
      </epl-top-bar>
      <el-card class="ep-card">
         
        <el-collapse v-model="activeNames">
          <el-form :model="form" ref="form" :rules="rules">
            <epl-injury-message :datas="form" isCodeType></epl-injury-message>
             <ep-title>请选择是否委托其他地区调查核实</ep-title>
             <el-row :gutter="20">
	              <ep-select
	                    colspan="8"
	                    label="是否委托其他地区调查核实"
	                    name="bae559"
	                    :property="form.bae559"
	                    placeholder="请选择是否委托其他地区调查核实"
	                    p="R"
	                    :datas="{formData:form}"
	                    codetype="BAE559" isChange
	                  ></ep-select>
              </el-row>   
            <el-collapse-item title="请输入调查核实信息" name="1" v-if="show3">
              <el-card class="ep-card">
                <el-row :gutter="20">
                  <ep-select
                    colspan="8"
                    label="材料类别"
                    name="bae548"
                    :property="form.bae548"
                    placeholder="请选择材料类别"
                    p="R"
                    :datas="{formData:form}"
                    codetype="BAE548"
                  ></ep-select>
                   <ep-number colspan="8" label="附件份数" name="bae549" :property="form.bae549" :placeholder="form.bae549.placeholder"
                                  p="R"  rules="this.$rules.num" ></ep-number>
                  <ep-input
                    colspan="8"
                    label="资料实体编码"
                    name="bae550"
                    :property="form.bae550"
                    placeholder="请输入资料实体编码"
                    p="E"
                    :datas="{formData:form}"
                  ></ep-input>
                </el-row>
                <el-row :gutter="20">
                  <ep-textarea
                    colspan="24"
                    label="材料描述"
                    name="bae547"
                    :property="form.bae547"
                    placeholder="请输入材料描述"
                    p="R"
                    :datas="{formData:form}"
                    rows="3"
                  ></ep-textarea>
                </el-row>
                <el-row :gutter="20">
                  <ep-input
                    colspan="8"
                    label="调查人"
                    name="bae555"
                    :property="form.bae555"
                    placeholder="请输入调查人"
                    p="R"
                    :datas="{formData:form}"
                  ></ep-input>
                  <ep-date
                    colspan="8"
                    label="调查开始日期"
                    name="blc537"
                    :property="form.blc537"
                    placeholder="请选择调查开始日期"
                    p="R"
                    :datas="{formData:form}"
                    type="date"
                    format="yyyy-MM-dd"
                    value-format="yyyyMMdd"
                    rules="this.$localRules.DateCheck"
                  ></ep-date>
                  <ep-date
                    colspan="8"
                    label="调查结束日期"
                    name="blc538"
                    :property="form.blc538"
                    placeholder="请选择调查结束日期"
                    p="R"
                    :datas="{formData:form}"
                    type="date"
                    format="yyyy-MM-dd"
                    value-format="yyyyMMdd"
                    rules="this.$localRules.DateCheck"
                  ></ep-date>
                </el-row>
              </el-card>
            </el-collapse-item>
            <el-collapse-item title="请输入举证告知信息" name="2" v-if="show3">
              <el-card class="ep-card">
                <el-row :gutter="20">
                  <ep-textarea
                    colspan="24"
                    label="举证告知内容"
                    name="blc533"
                    :property="form.blc533"
                    placeholder="请输入举证告知内容"
                    p="R"
                    :datas="{formData:form}"
                    rows="3"
                  ></ep-textarea>
                </el-row>
              </el-card>
            </el-collapse-item>
            <el-collapse-item title="请请输入调查核实完毕信息" name="3" v-if="show3">
              <el-card class="ep-card">
                <el-row :gutter="20">
                  <ep-date
                    colspan="8"
                    label="调查核实完成日期"
                    name="aae031"
                    :property="form.aae031"
                    placeholder="请选择调查核实完成日期"
                    p="R"
                    :datas="{formData:form}"
                    type="date"
                    format="yyyy-MM-dd"
                    value-format="yyyyMMdd"
                    rules="this.$localRules.DateCheck"
                  ></ep-date>
                </el-row>
              </el-card>
            </el-collapse-item>
            <el-collapse-item title="请输入委托其他统筹区调查核实" name="4" v-if="!show3">
              <el-card class="ep-card">
                <el-row :gutter="20">
                  <ep-select
                    colspan="8"
                    label="被委托地行政区划"
                    name="aab301"
                    :property="form.aab301"
                    placeholder="请选择被委托地行政区划"
                    p="R"
                    :datas="{formData:form}"
                    codetype="AAB301"
                  ></ep-select>
                  <ep-input
                    colspan="8"
                    label="本地经办联系人"
                    name="aae004"
                    :property="form.aae004"
                    placeholder="请输入本地经办联系人"
                    p="R"
                    :datas="{formData:form}"
                  ></ep-input>
                  <ep-input
                    colspan="8"
                    label="联系电话"
                    name="aae005"
                    :property="form.aae005"
                    placeholder="请输入联系电话"
                    p="R"
                    :datas="{formData:form}"
                    rules="this.$rules.mobile" 
                  ></ep-input>
                </el-row>
                <el-row :gutter="20">
                  <ep-date
                    colspan="8"
                    label="调查核实完成日期"
                    name="aae030"
                    :property="form.aae030"
                    placeholder="请选择调查核实完成日期"
                    p="R"
                    :datas="{formData:form}"
                    type="date"
                    format="yyyy-MM-dd"
                    value-format="yyyyMMdd"
                    rules="this.$localRules.DateCheck"
                  ></ep-date>
                </el-row>
              </el-card>
            </el-collapse-item>
          </el-form>
        </el-collapse>
      </el-card>
    </el-main>
  </el-main>
</template>

<script src="../js/InvestigationRegJS.js"></script>
